package com.zzyl.mapper;

import com.zzyl.entity.NursingProjectPlan01;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingProjectPlanMapper {

    /**
     * 添加护理项目计划
     * @param projectPlan
     * @return
     */
    int insert(NursingProjectPlan01 projectPlan);

    /**
     * 批量删除
     * @param ids
     */
    int deleteByIds(List<Long> ids);

    @Delete("delete from nursing_project_plan where plan_id = #{nursingPlanId}")
    void deleteByNursingPlanId( Long id);
}
